<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分类</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <style>
        .time {
            font-size: 13px;
            color: #999;
        }

        .bottom {
            margin-top: 13px;
            line-height: 12px;
        }

        .button {
            padding: 0;
            float: right;
        }

        .video {
            width: 100%;
            display: block;
        }

        .clearfix:before,
        .clearfix:after {
            display: table;
            content: "";
        }

        .clearfix:after {
            clear: both
        }

        .coll{
            margin-left: 20px;
        }
    </style>
</head>

<body>
<div id="app">
    <template>
        <div style="margin-top: 20px">
            <el-radio-group v-model="radio1">
                <!--                    <el-radio-button label="视频时长:" disabled=""></el-radio-button>-->
                <el-radio-button label="全部时长"></el-radio-button>
                <el-radio-button label="10分钟以下"></el-radio-button>
                <el-radio-button label="10~30分钟"></el-radio-button>
                <el-radio-button label="30~60分钟"></el-radio-button>
                <el-radio-button label="60分钟以上"></el-radio-button>
            </el-radio-group>
        </div>
        <div style="margin-top: 20px">
            <el-radio-group v-model="radio2" >
                <el-radio-button label="综合排序"></el-radio-button>
                <el-radio-button label="最多点击"></el-radio-button>
                <el-radio-button label="最新发布"></el-radio-button>
            </el-radio-group>
        </div>
        <div style="margin-top: 20px">
            <el-row>
                <el-col :span="5" v-for="(o, index) in 4" :key="o" :offset="index > 0 ? 2 : 0" class="coll">
                    <el-card :body-style="{ padding: '10px' }">
                        <img src="../image/lisanshuxue.png" class="video">
                        <div style="padding: 14px;">
                            <span>离散数学</span>
                            <div class="bottom clearfix">
                                <time class="time">{{ currentDate }}</time>
                                <el-button type="text" class="button"><a href="display.html" style="background-size: cover">查看</a></el-button>
                            </div>
                        </div>
                    </el-card>
                </el-col>
            </el-row>
        </div>
    </template>
</div>
<div>

</div>
<!-- 引入vue -->
<script src="../js/vue.js"></script>
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>
    new Vue({
        el: '#app',
        data () {
            return {
                radio1: '全部时长',
                radio2: '综合排序',
                currentDate: new Date()
            };
        }
    })
</script>
</body>
</html>